<? include('layer/head.html'); ?>
<body class="ly121 index">
	<? include('layer/topnav.html'); ?>
	<? include('layer/header.html'); ?>
	<div class="banner_login clrfix">
    
    	<!--------------焦点图Begin------------->
    	<div class="banner mpt a_indexfocus">
        	<div class="bd">
            	<ul class="pictrues e_pictrues">
                <?php
                    if($indexfocus)
                    {
                        foreach($indexfocus as $key=>$val)
                        {
                ?>
                	<li><a href="<?php echo $val['focus_link_url']?>" target="_blank"><img src="<?php echo $val['focus_pic_url']?>"></a></li>
				<?php 
                        }
                     }
                ?>    
                </ul>
                <ul class="handles e_handles">
                <?php if($indexfocus){foreach($indexfocus as $key=>$val){?>
                	<li><a href="#" <?php if($key==0) echo 'class="on"'?> ></a></li>
                <?php }}?>      
                </ul>
            </div>
        	<div class="ft"></div>
        </div>
        <!--------------焦点图End------------->
        
        <!-------------登录Start------------->
        <?php if(empty($userinfo)){?>
        <!-------------未登录-------------->
        <div class="login_panel mpt a_login">
        	<div class="box_border">
        		<form class="wrap bd">
                    <dl class="fieldset clrfix">
                        <dd class="userid">
                            <div class="input_wrap">
                                <input class="fverdana" type="text" id="txtUserName" value="请输入用户名">
                                <div class="border_end"></div>
                            </div>
                        </dd>
                    </dl>
                    <dl class="fieldset clrfix">
                        <dd class="password">
                            <div class="input_wrap">
                                <input class="fverdana" type="password" id="txtPassword" value="">
                                <div class="border_end"></div>
                            </div>
                        </dd>
                    </dl>
                    <dl class="fieldset clrfix">
                        <dd class="auto_login">
                            <label class="checkbox"><input type="checkbox"  checked="checked" value="1" id="autologin">下次自动登录</label>
                        </dd>
                        <dd class="forget_pwd">
                            <a href="?action=ChangePwd">忘记密码?</a>
                        </dd>
                    </dl>
                    <dl class="fieldset clrfix">
                        <dd>
                            <input type="button" class="button_1" id="btnlogin" value="登录">
                        </dd>
                        <dd>
                            <input type="button" class="button_1" id="openregister" value="注册">
                        </dd>
                    </dl>
                    <div class="clrfix openid">
                        <a href="javascript:void(0);" onClick="javascript:window.open('/qqopenid/qq_login.php','newwindow','height=400,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');" class="openid_link"><span class="icon icon_qq_big pngFix"></span>QQ账号登录</a>
                        <a href="javascript:void(0);" onClick="javascript:window.open('/sinaweibo2/index.php','newwindow','height=400,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');" class="openid_link"><span class="icon icon_sina pngFix"></span>新浪账号登录</a>
                    </div>
                </form>
            </div>
        	<div class="hd"></div>
        </div>
        <?php }else{?>
        <!-------------已登录------------->
        <div class="profile_panel">
        	<div class="box_border">
            	<div class="wrap bd">
                    <a class="photo" href="/?action=Usercenter"><img src="<?php echo (!empty($userinfo['avatar'])?$userinfo['avatar']: STATIC_HTTP . 'img/avatar.gif') ?>"></a>
                    <div class="input_wrap nickname">
                        <a href="/?action=Usercenter"><?php echo $userinfo['nickname']?></a>
                        <div class="border_end"></div>
                    </div>
                    <a class="usernumber" href="/Usercenter">(<?php echo $userinfo['usernum']?>)</a>
                    <a class="button_4 alter_nickname" href="/?action=Usercenter">修改昵称</a>
                    <ul class="level live">
                        <li class="til">主播等级</li>
                        <li class="icon mpt a_createicon" credit="<?php echo $userinfo['credit']?>" type="credit"><span id="idspliveicon" class="icon_live_level"></span></li>
                        <li>
                            <div class="progress_bar">
                                <div id="dvprogresscredit" class="cover" style="width:50%;"></div>
                            </div>
                        </li>
                    </ul>
                    <ul class="level rich">
                        <li class="til">富豪等级</li>
                        <li class="icon mpt a_createicon" wealth="<?php echo $userinfo['wealth']?>" type="wealth"><span id="idspwealthicon" class="icon_live_level"></span></li>
                        <li>
                            <div class="progress_bar">
                                <div id="dvprogresswealth" class="cover" style="width:50%;"></div>
                            </div>
                        </li>
                    </ul>
                    <ul class="gold_panel">
                        <li>
                        	<p class="clrfix fn_left"><span class="jb_icon pngFix"></span><span class="val"><?php echo $userinfo['usercoins']?></span></p><br />
							<p class="clrfix fn_left"><span class="jd_icon pngFix"></span><span class="val"><?php echo $userinfo['userdian']?$userinfo['userdian']:0 ;?></span></p>
                        </li>
                        <li class="add_money"><a href="http://pay.9xiu.com" class="button_5">充值</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <?php }?>
        <!-------------登录End------------->
    </div>
	<div class="contenter clrfix">
    	<div class="aside_left">
        	<a href="?action=livelist" class="hot_live_panel"></a>
        	<div class="activity_panel">
            	<div class="hd clrfix">
                	<div class="til"><span class="icon_Events pngFix"></span>精彩活动</div>
                	<div class="more"><a href="?action=ActivityList">更多…</a></div>
                </div>
            	<div class="bd">
                	<ul>
                    <!--------活动Begin--------->
                    	<?php if($activity){ foreach($activity as $val){?>
                    
                    	<li><a href="<?php if($val['link'] == ''){echo '?action=ActivityDetail&id='.$val['act_id'];}else{echo $val['link'];}?>" target="_blank"><?php echo $val['act_name'];?></a></li>
                        <?php }}?>
                    <!--------活动End--------->    
                    </ul>
                </div>
            </div>
        
        	<!--<div class="help_panel">
            	<div class="hd clrfix">
                	<div class="til">帮助中心</div>
                	<div class="more"><a href="#">更多…</a></div>
                </div>
            	<div class="bd">
                	<ul>
                    	<li><a href="#">常见问题</a></li>
                    	<li><a href="#">投诉建议</a></li>
                    	<li><a href="#">申请签约主播</a></li>
                    	<li><a href="#">投诉建议</a></li>
                    </ul>
                </div>
            </div>-->
        
        	<div class="service_panel service_New">
            	<div class="hd clrfix">
                	<div class="til"><span class="icon_contact pngFix"></span>联系我们</div>
                </div>
            	<div class="bd mpt a_qqservice">
                	<dl>
                    	<!--dt class="e_service_hanle" tab="1">• <a href="javascript:;">在线客服</a> <a class="icon_reduce" id="service_a_tab1" href="javascript:;"></a></dt-->
                    	<dt class="e_service_hanle" tab="1"><span>• 联系客服</span> <ul>
                            	<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1761456592&site=qq&menu=yes"><img border="0" SRC="http://wpa.qq.com/pa?p=1:1761456592:1" alt="点击这里给我发消息"></a></li>
                                <li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=121585436&site=qq&menu=yes"><img border="0" SRC="http://wpa.qq.com/pa?p=1:121585436:1" alt="点击这里给我发消息"></a></li>
                            </ul></dt>
                    	<!--dt class="e_service_hanle" tab="2">• <a href="javascript:;">招聘主播</a> <a class="icon_reduce" id="service_a_tab2" href="javascript:;"></a></dt-->
                    	<dt class="e_service_hanle" tab="2"><span>• 主播招聘</span> <ul>
                            	<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2242093032&site=qq&menu=yes"><img border="0" SRC="http://wpa.qq.com/pa?p=1:2242093032:1" alt="点击这里给我发消息"></a></li>
                            	<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1485046980&site=qq&menu=yes"><img border="0" SRC="http://wpa.qq.com/pa?p=1:1485046980:1" alt="点击这里给我发消息"></a></li>
                            </ul></dt>
                    	<!--dt class="e_service_hanle" tab="3">• <a href="javascript:;">故障排除</a> <a class="icon_reduce" id="service_a_tab3" href="javascript:;"></a></dt-->
                    	<dt class="e_service_hanle" tab="3"><span>• 星探招募</span> <ul>
                            	<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2242093032&site=qq&menu=yes"><img border="0" SRC="http://wpa.qq.com/pa?p=1:2242093032:1" alt="点击这里给我发消息"></a></li>
                            	<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1485046980&site=qq&menu=yes"><img border="0" SRC="http://wpa.qq.com/pa?p=1:1485046980:1" alt="点击这里给我发消息"></a></li>
                            </ul></dt>
                        
                        <dt class="e_service_hanle" tab="3"><span>• 家族招募</span> <ul>
                            	<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2242093032&site=qq&menu=yes"><img border="0" SRC="http://wpa.qq.com/pa?p=1:2242093032:1" alt="点击这里给我发消息"></a></li>
                            	<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1485046980&site=qq&menu=yes"><img border="0" SRC="http://wpa.qq.com/pa?p=1:1485046980:1" alt="点击这里给我发消息"></a></li>
                            </ul></dt>
                        
                        <dt class="e_service_hanle" tab="3"><span>• 市场合作</span> <ul>
                            	<li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1687082142&site=qq&menu=yes"><img border="0" SRC="http://wpa.qq.com/pa?p=1:1687082142:1" alt="点击这里给我发消息"></a></li>
                            </ul></dt>
                    </dl>
                </div>
            </div>
        </div>
    	<div class="live_list article mpt a_ajaxroom" position="index">
            <div class="hd clrfix">
                <div class="til">直播大厅</div>
                <ul class="tab_style_1 clrfix">
                    <li><a href="javascript:;" tab_bd="roomnum" class="e_tab_hanle on">观众人数</a></li>
                    <li>|<a href="javascript:;" tab_bd="credit" class="e_tab_hanle">主播等级</a></li>
                    <li>|<a href="javascript:;" tab_bd="jointime" class="e_tab_hanle">新人美眉</a></li>
                </ul>
            </div>
            <ul class="bd clrfix" id="common_room_list">
            </ul>
            
            
            
        </div>
    	<div class="aside_right">
        
        	<div class="favorite_panel mpt a_tab">
            	<div class="hd clrfix">
                    <ul class="tab_style_1 clrfix">
                    	<li><a href="javascript:;" tab_bd="e_tab_bd_1" class="e_tab_hanle on">最近观看</a></li>
                    	<li><a href="javascript:;" tab_bd="e_tab_bd_2" class="e_tab_hanle">我的收藏</a></li>
                    </ul>
                </div>
                <?php if($latestviewroom){?>
            	<div class="bd e_tab_bd e_tab_bd_1">
                    <ul class="list">
                    <?php foreach($latestviewroom as $key=>$val){?>
                    	<li>&nbsp;<span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span><a href="/<?php echo $val['usernum'];?>" target="_blank"><?php echo $val['nickname'];?></a> <?php if($val['openstatic'] == 1){?><span class="state onlive">直播中</span><?php }else{ echo'<span class="state onlive">未直播</span>';} ?></li>
                    <?php }?>    
                    </ul>
                </div>
                <?php }?>
                <?php if($myfavorite){?>
                <div class="bd hide e_tab_bd e_tab_bd_2">
                    <ul class="list">
                    <?php foreach($myfavorite as $key=>$val){?>
                    	<li>&nbsp;<span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span><a href="/<?php echo $val['usernum'];?>" target="_blank"><?php echo $val['nickname'];?></a> <?php if($val['openstatic'] == 1){?><span class="state onlive">直播中</span><?php }else{ echo '<span class="state onlive">未直播</span>'; } ?></li>
                    <?php }?>    
                    </ul>
                </div>
                <?php }?>
            </div>
        
        	<div class="news_panel">
            	<div class="hd clrfix">
                	<div class="til"><span class="icon_index_news pngFix"></span>新闻公告</div>
                	<div class="more"><a href="?action=AnnouncementList">更多…</a></div>
                </div>
            	<div class="bd">
                	<?php if($lastgift){?>
                        <ul class="top">
                            <?php foreach($lastgift as $key=>$val){?>
                            <li><a href="/<?php echo $val['rnum'];?>"><?php echo date('H:i',$val['time']);?> 
                            <?php echo $val['tonickname'];?> 收到 <img class="photo" width="22px" height="22px" src="<?php echo STATICGIFT.'gift'.$val['gid'].'.png';?>">×<?php echo $val['count'];?>个</a></li>
                            <?php }?>
                        </ul>
                    <?php }?>
                    <ul class="list">
                    <!--------新闻公告Begin--------->
                    	<?php if($news){ foreach($news as $val){?>
                    
                    	<li class="clrfix"><span class="fn_right" style="color:#666"><?php echo Date('m/d',$val['time']);?></span><a href="?action=AnnouncementDetail&id=<?php echo $val['id'];?>" class="fn_left" target="_blank"><?php echo $val['article_name'];?></a></li>
                        <?php }}?>
                    <!--------新闻公告End--------->    
                    </ul>
                </div>
            </div>
        
            <!-------明星榜------>
            <? include('topStar.html'); ?>
        
            <!-------富豪榜------>
            <? include('topWealth.html'); ?>
        
            <!-------房间人气榜------>
            <? include('topRoom.html'); ?>
        
        </div>
    </div>
<? include('layer/footer.html'); ?>
<? include('layer/foot.html'); ?>
<? include('layer/jsstart.html'); ?>
